import request from '@/utils/request'
import Vue from 'vue'

// 仓库列表
export const getWarehouseList = data => {
    return request({
        url: Vue.prototype.$api.warehouse.getWarehouseList,
        method: 'post',
        data,
    })
}
export const warehouseFind = data => {
    return request({
        url: Vue.prototype.$api.warehouse.warehouseFind,
        method: 'post',
        data,
    })
}
export const warehouseAdd = data => {
    return request({
        url: Vue.prototype.$api.warehouse.warehouseAdd,
        method: 'post',
        data,
    })
}
export const warehouseEdit = data => {
    return request({
        url: Vue.prototype.$api.warehouse.warehouseEdit,
        method: 'post',
        data,
    })
}


// 仓库列表
export const getPartitionList = data => {
    return request({
        url: Vue.prototype.$api.warehouse.getPartitionList,
        method: 'post',
        data,
    })
}
export const partitionFind = data => {
    return request({
        url: Vue.prototype.$api.warehouse.partitionFind,
        method: 'post',
        data,
    })
}
export const partitionAdd = data => {
    return request({
        url: Vue.prototype.$api.warehouse.partitionAdd,
        method: 'post',
        data,
    })
}
export const partitionEdit = data => {
    return request({
        url: Vue.prototype.$api.warehouse.partitionEdit,
        method: 'post',
        data,
    })
}


// 仓库列表
export const getGoodsshelvesList = data => {
    return request({
        url: Vue.prototype.$api.warehouse.getGoodsshelvesList,
        method: 'post',
        data,
    })
}
export const goodsshelvesFind = data => {
    return request({
        url: Vue.prototype.$api.warehouse.goodsshelvesFind,
        method: 'post',
        data,
    })
}
export const goodsshelvesAdd = data => {
    return request({
        url: Vue.prototype.$api.warehouse.goodsshelvesAdd,
        method: 'post',
        data,
    })
}
export const goodsshelvesEdit = data => {
    return request({
        url: Vue.prototype.$api.warehouse.goodsshelvesEdit,
        method: 'post',
        data,
    })
}
export const queryGoodsshelvesList = data => {
    return request({
        url: Vue.prototype.$api.warehouse.queryGoodsshelvesList,
        method: 'post',
        data,
    })
}
export const change_position = data => {
    return request({
        url: Vue.prototype.$api.warehouse.change_position,
        method: 'post',
        data,
    })
}
// 仓库清单
export const getDetailedList = data => {
    return request({
        url: Vue.prototype.$api.warehouse.getDetailedList,
        method: 'post',
        data,
    })
}
export const detailedDetail = data => {
    return request({
        url: Vue.prototype.$api.warehouse.detailedDetail,
        method: 'post',
        data,
    })
}
export const detailedAdd = data => {
    return request({
        url: Vue.prototype.$api.warehouse.detailedAdd,
        method: 'post',
        data,
    })
}
export const detailedEdit = data => {
    return request({
        url: Vue.prototype.$api.warehouse.detailedEdit,
        method: 'post',
        data,
    })
}
export const detailedImport = data => {
    return request({
        url: Vue.prototype.$api.warehouse.detailedImport,
        method: 'post',
        data,
    })
}
export const detailedExport = data => {
    return request({
        url: Vue.prototype.$api.warehouse.detailedExport,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const getList = data => {
    return request({
        url: Vue.prototype.$api.warehouse.getList,
        method: 'post',
        data,
    })
}
export const detailedListInfoDetail = data => {
    return request({
        url: Vue.prototype.$api.warehouse.detailedListInfoDetail,
        method: 'post',
        data,
    })
}
export const detailedListInfoEdit = data => {
    return request({
        url: Vue.prototype.$api.warehouse.detailedListInfoEdit,
        method: 'post',
        data,
    })
}
export const detailedListInfoDelete = data => {
    return request({
        url: Vue.prototype.$api.warehouse.detailedListInfoDelete,
        method: 'post',
        data,
    })
}
export const detailedListInfoExport = data => {
    return request({
        url: Vue.prototype.$api.warehouse.detailedListInfoExport,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const getInStores = data => {
    return request({
        url: Vue.prototype.$api.warehouse.getInStores,
        method: 'post',
        data,
    })
}
export const getInStoresDetail = data => {
    return request({
        url: Vue.prototype.$api.warehouse.getInStoresDetail,
        method: 'post',
        data,
    })
}
export const inStoresDetail = data => {
    return request({
        url: Vue.prototype.$api.warehouse.inStoresDetail,
        method: 'post',
        data,
    })
}
export const inStoresEdit = data => {
    return request({
        url: Vue.prototype.$api.warehouse.inStoresEdit,
        method: 'post',
        data,
    })
}
export const inStoresConfirm = data => {
    return request({
        url: Vue.prototype.$api.warehouse.inStoresConfirm,
        method: 'post',
        data,
    })
}
export const inStoresAdd = data => {
    return request({
        url: Vue.prototype.$api.warehouse.inStoresAdd,
        method: 'post',
        data,
    })
}
export const geWarehouseSku = data => {
    return request({
        url: Vue.prototype.$api.warehouse.geWarehouseSku,
        method: 'post',
        data,
    })
}
export const warehouseAddRemark = data => {
    return request({
        url: Vue.prototype.$api.warehouse.warehouseAddRemark,
        method: 'post',
        data,
    })
}
export const delInStores = data => {
    return request({
        url: Vue.prototype.$api.warehouse.delInStores,
        method: 'post',
        data,
    })
}

export const getReStores = data => {
    return request({
        url: Vue.prototype.$api.warehouse.getReStores,
        method: 'post',
        data,
    })
}

export const delReStores = data => {
    return request({
        url: Vue.prototype.$api.warehouse.delReStores,
        method: 'post',
        data,
    })
}

export const getReStoresDetail = data => {
    return request({
        url: Vue.prototype.$api.warehouse.getReStoresDetail,
        method: 'post',
        data,
    })
}